<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Mosaddek">
    <meta name="keyword" content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="shortcut icon" href="{{ asset('admin/img/favicon.png') }}">

    <title>微盘后台</title>

    <!-- Bootstrap core CSS -->
    <link href="{{ asset('admin/css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/bootstrap-reset.css') }} " rel="stylesheet">
    <!--external css-->
    <link href="{{ asset('admin/assets/font-awesome/css/font-awesome.css') }}" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="{{ asset('admin/css/style.css') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/style-responsive.css') }}" rel="stylesheet" />
    <link href="{{ asset('admin/css/sweetalert.css') }}" rel="stylesheet">
    @yield('css')
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

  <section id="container" class="">
      <!--header start-->
      <header class="header white-bg">
          <div class="sidebar-toggle-box">
              <div data-original-title="菜单" data-placement="right" class="icon-reorder tooltips"></div>
          </div>
          <!--logo start-->
          <a href="index.html" class="logo" >成都极客部落<span>微盘管理</span></a>
          <!--logo end-->
          <div class="nav notify-row" id="top_menu">
            <!--  notification start -->
            
          </div>
          <div class="top-nav ">
              <ul class="nav pull-right top-menu">
                  <li>
                      <!-- <input type="text" class="form-control search" placeholder="Search"> -->
                  </li>
                  <!-- user login dropdown start-->
                  <li class="dropdown">
                      <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                          <!-- <img alt="" src="img/avatar1_small.jpg"> -->
                          <span class="username">{{ Auth::user()->name }}</span>
                          <b class="caret"></b>
                      </a>
                      <ul class="dropdown-menu extended logout">
                          <div class="log-arrow-up"></div>
                          <li>
                                        <a href="{{ url('/logout') }}"
                                            onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                            退出
                                        </a>

                                        <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form>
                                    </li>
                          <!-- <li><a href="{{ url('/logout') }}"><i class="icon-key"></i> 退出</a></li> -->
                      </ul>
                  </li>

                  <!-- user login dropdown end -->
              </ul>
          </div>
      </header>
      <!--header end-->
      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu" id="nav-accordion">
                  <!-- <li>
                      <a href="/admin/home">
                          <i class="icon-dashboard"></i>
                          <span>首页</span>
                      </a>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" class="active">
                          <i class="icon-laptop"></i>
                          <span>访问控制</span>
                      </a>
                      <ul class="sub">
                          <li ><a  href="{{ route('admin.access.users') }}">用户权限</a></li>
                          <li><a  href="{{ route('admin.access.roles') }}">角色管理</a></li>
                          <li class="active"><a  href="{{ route('admin.access.permissions') }}">权限管理</a></li>
                      </ul>
                  </li> -->
                @inject('permissionPresenter','App\Presenters\PermissionPresenter')

                {!! $permissionPresenter->menus() !!}
              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->
      <!--main content start-->
      @yield('content')
      <!-- <section id="main-content">
          <section class="wrapper site-min-height"> -->
              <!-- page start-->
              
              <!-- page end-->
         <!--  </section>
      </section> -->
      <!--main content end-->
      <!--footer start-->
      <footer class="site-footer">
          <div class="text-center">
              2013 &copy; 成都极客部落有限公司.
              <a href="#" class="go-top">
                  <i class="icon-angle-up"></i>
              </a>
          </div>
      </footer>
      <!--footer end-->
  </section>

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="{{ asset('admin/js/jquery.js') }}"></script>
    <script src="{{ asset('admin/js/jquery-1.8.3.min.js') }}"></script>
    <script src="{{ asset('admin/js/bootstrap.min.js') }}"></script>
    <script class="include" type="text/javascript" src="{{ asset('admin/js/jquery.dcjqaccordion.2.7.js') }}"></script>
    <script src="{{ asset('admin/js/jquery.scrollTo.min.js') }}"></script>
    <script src="{{ asset('admin/js/jquery.nicescroll.js') }}" type="text/javascript"></script>
    <script src="{{ asset('admin/js/respond.min.js') }}" ></script>

    <!--common script for all pages-->
    <script src="{{ asset('admin/js/common-scripts.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/modernizr.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/toggles.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/retina.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/jquery.cookies.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/flot/flot.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/flot/flot.resize.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/morris.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/raphael-2.1.0.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/chosen.jquery.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/sweetalert.min.js') }}"></script>
    <script src="{{ asset('admin/rbacjs/custom.js') }}"></script>
    <script src="{{ asset('admin/js/ajax.js') }}"></script>
    @section('javascript')
   {!! Toastr::render() !!}
    @show

  </body>
</html>
